package com.etc.service;

import com.etc.dao.ViewRoomInfoDao;
import com.etc.entity.ViewRoomInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ViewRoomInfoServiceImpl implements ViewRoomInfoService{
    @Autowired
    ViewRoomInfoDao dao;

    @Override
    public List<ViewRoomInfo> getAllRoom() {
        return dao.queryAllRoom();
    }

    @Override
    public List<ViewRoomInfo> getRoomInfo(String spc,String rtName) {
        return dao.queryAllRoomInfo(spc,rtName);
    }
}
